package com.itheima.controller;

import org.springframework.web.bind.annotation.*;

/**
 * @author zhoufei
 */
 @RestController
 @RequestMapping("/hello")
public class HelloWorldController {

     @GetMapping
     public String hello(){
         System.out.println("欢迎来到我的世界！冲冲冲");
         return "OK!";
     }

    @GetMapping("/hi")
    public String hi(){
        System.out.println("欢迎来到他的世界！冲冲冲");
        return "Success!";
    }
}
